﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="uc_from_product.ascx.cs" Inherits="WebInvoicingsys.basecontrol.business.uc_from_product" %>
<table>
    <tr>
        <td valign="middle" >
            <div style="height:30px; vertical-align:middle; line-height:30px; float:left; font-size:10px">
                <div style="height:30px; vertical-align:middle; line-height:30px; float:left">
                    <asp:TextBox ID="txt_product" runat="server" Width="160" Font-Size="10px" Height="20"/>
                </div>
                <div style="height:30px; vertical-align:middle; line-height:30px; float:left; margin-left:5px">
                    <button class="btn btn-primary" data-toggle="modal" data-target="#productList" style="height:28px">查找</button>
                </div>
            </div>
        </td>
    </tr>
</table>
<!-- 模态框（Modal） -->
<div class="modal fade" id="productList" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:1024px; font-size:10px;">
   <div class="modal-dialog" style="width:1024px">
      <div class="modal-content" style="width:1024px">
         <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                  &times;
            </button>
            <h4 class="modal-title" id="myModalLabel">
               产品查找
            </h4>
         </div>

         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
         <ContentTemplate>
         <div class="modal-body">
            <table>
                <tr>
                    <td valign="middle" style="height:30px">
                        <div style="height:30px; vertical-align:middle; line-height:30px; float:left">
                            <div style="height:30px; vertical-align:middle; line-height:30px; float:left">
                                货品条码:
                            </div>
                            <div style="height:30px; vertical-align:middle; line-height:30px; float:left; margin-left:5px">
                                <asp:TextBox ID="txt_productcode" runat="server" Width="160" Font-Size="10px" Height="20"></asp:TextBox>
                            </div>
                            <div style="height:30px; vertical-align:middle; line-height:30px; float:left; margin-left:5px">
                                货品全称:
                            </div>
                            <div style="height:30px; vertical-align:middle; line-height:30px; float:left; margin-left:5px">
                                <asp:TextBox ID="txt_productname" runat="server" Width="160" Font-Size="10px" Height="20"></asp:TextBox>
                            </div>
                            <div style="height:30px; vertical-align:middle; line-height:30px; float:left; margin-left:5px">
                                货品简称:
                            </div>
                            <div style="height:30px; vertical-align:middle; line-height:30px; float:left; margin-left:5px">
                                <asp:TextBox ID="txt_productshortname" runat="server" Width="160" Font-Size="10px" Height="20"></asp:TextBox>
                            </div>
                            <div style="height:30px; vertical-align:middle; line-height:30px; float:left; margin-left:5px">
                                <asp:Button class="btn btn-primary" style="height:28px" id="btnSearch" runat="server" Text="查询" onclick="btnSearch_Click"/>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
         </div>
         <div class="modal-body">
             <table class="table table-bordered">
                <thead style="background-color:Silver; text-align:center">
	                <tr>
		                <th>序号</th>
		                <th>货品条码</th>
                        <th>货品全称</th>
                        <th>货品简称</th>
                        <th>货品类别</th>
                        <th>货品单位</th>
                        <th>货品规格</th>
                        <th>堆放方式</th>
                        <th>防护方式</th>
                        <th>当前库存</th>
                        <th>选择</th>
	                </tr>
                </thead>
                <tbody>
                <asp:Repeater ID="rplist" runat="server" onitemcommand="rplist_ItemCommand">
                <ItemTemplate>
                <tr>
		            <td><%#Eval("dgvID")%></td>
		            <td><%#Eval("productcode")%></td>
                    <td><%#Eval("productname")%></td>
                    <td><%#Eval("productshortname")%></td>
                    <td><%#Eval("goodsclassname")%></td>
                    <td><%#Eval("goodsunitname")%></td>
                    <td><%#Eval("goodsspecname")%></td>
                    <td><%#Eval("stackname")%></td>
                    <td><%#Eval("guardname")%></td>
                    <td><%#Eval("Qty1")%></td>
                    <td>
                        <asp:LinkButton runat="server" ID="lbtSelect" CommandArgument='<%#Eval("productcode")%>'
                            CommandName="Select" Text="选择" CssClass="btn btn-xs btn-primary"></asp:LinkButton>
                    </td>
	            </tr>
                </ItemTemplate>
                </asp:Repeater>
                </tbody>
                </table>

                <table border="0" style="width:800px; text-align:right">
                    <tr>
                        <td align="left" style="width:300px">
                            当前选择:<asp:Label ID="lbSelect" runat="server" Text="" Font-Bold="true"></asp:Label>
                        </td>
                        <td align="right" style="width:500px; text-align:center"> 
                            <asp:LinkButton ID="lbtnFirstPage" runat="server" OnClick="lbtnFirstPage_Click">页首</asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="lbtnpritPage" runat="server" OnClick="lbtnpritPage_Click">上一页</asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="lbtnNextPage" runat="server" OnClick="lbtnNextPage_Click">下一页</asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="lbtnDownPage" runat="server" OnClick="lbtnDownPage_Click">页尾</asp:LinkButton><br />&nbsp;&nbsp;&nbsp;&nbsp;
                            第<asp:Label ID="labPage" runat="server" Text="Label"></asp:Label>页/共<asp:Label ID="LabCountPage" runat="server" Text="Label"></asp:Label>页
                        </td>
                    </tr> 
                </table> 
         </div>

         
        </ContentTemplate>
        </asp:UpdatePanel>

         <div class="modal-footer">
            <asp:Button class="btn btn-primary" style="height:28px" id="btConfirm" runat="server" Text="确认" onclick="btConfirm_Click"/>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button class="btn btn-primary" style="height:28px" id="btClose" runat="server" Text="关闭" onclick="btClose_Click"/>
         </div>
      </div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
